home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / Draw / Sources / FloatFrm.h < prev    next >
Encoding:
Text File  |  1996-04-25  |  2.0 KB  |  71 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FloatFrm.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FLOATFRM_H
  13. #define FLOATFRM_H
  14.  
  15. // ----- Part Layer -----
  16.  
  17. #ifndef FWFRAME_H
  18. #include "FWFrame.h"
  19. #endif
  20.  
  21. // ----- OS Layer -----
  22.  
  23. #ifndef FWMAPING_H
  24. #include "FWMaping.h"
  25. #endif
  26.  
  27. //========================================================================================
  28. // Forward Declaration
  29. //========================================================================================
  30.  
  31. class FW_CMapping;
  32.  
  33. class CDrawPart;
  34.  
  35. //========================================================================================
  36. // CFloatingWindowFrame
  37. //========================================================================================
  38.  
  39. class CFloatingWindowFrame : public FW_CFrame
  40. {
  41. //----------------------------------------------------------------------------------------
  42. // Initialization/destruction
  43. //
  44. public:        
  45.     CFloatingWindowFrame(Environment* ev, ODFrame* odFrame, FW_CPresentation* presentation, CDrawPart* drawPart);
  46.     virtual ~ CFloatingWindowFrame();
  47.  
  48. //----------------------------------------------------------------------------------------
  49. // Inherited
  50. //
  51. public:    
  52.     virtual void            FacetAdded(Environment* ev, ODFacet* facet, unsigned short facetCount);
  53.     virtual void            FacetRemoved(Environment* ev, ODFacet* facet, unsigned short facetCount);
  54.     
  55. //----------------------------------------------------------------------------------------
  56. // New API
  57. //
  58. protected:    
  59.     void                    EraseBackground(Environment* ev, FW_CGraphicContext& gc);
  60.     void                    HideShowFloating(Environment* ev);
  61.     
  62. //----------------------------------------------------------------------------------------
  63. // Data Members
  64. //
  65. protected:    
  66.     CDrawPart*                fDrawPart;
  67.     ODFacet*                fFacet;
  68.     FW_CMapping                fMapping;
  69. };
  70.  
  71. #endif